/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package smallsimulator;

/**
 *
 * @author Old
 */
public class servicoInfo implements java.io.Serializable {
    
    private String nome;
    private String tipoRandom;
    private int slots;
    private float tempoMedio;
    private float desvio;

    public servicoInfo() {
        this.nome = "";
        this.tipoRandom = "log";
        this.slots = 1;
        this.tempoMedio = 1;
        this.desvio = 0;
    }

    public servicoInfo(String nome, String tipoRandom, int slots, float tempoMedio, float desvio) {
        this.nome = nome;
        this.tipoRandom = tipoRandom;
        this.slots = slots;
        this.tempoMedio = tempoMedio;
        this.desvio = desvio;
    }

    public float getDesvio() {
        return desvio;
    }

    public void setDesvio(float desvio) {
        this.desvio = desvio;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public int getSlots() {
        return slots;
    }

    public void setSlots(int slots) {
        this.slots = slots;
    }

    public float getTempoMedio() {
        return tempoMedio;
    }

    public void setTempoMedio(float tempoMedio) {
        this.tempoMedio = tempoMedio;
    }

    public String getTipoRandom() {
        return tipoRandom;
    }

    public void setTipoRandom(String tipoRandom) {
        this.tipoRandom = tipoRandom;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final servicoInfo other = (servicoInfo) obj;
        if ((this.nome == null) ? (other.nome != null) : !this.nome.equals(other.nome)) {
            return false;
        }
        if ((this.tipoRandom == null) ? (other.tipoRandom != null) : !this.tipoRandom.equals(other.tipoRandom)) {
            return false;
        }
        if (this.slots != other.slots) {
            return false;
        }
        if (Float.floatToIntBits(this.tempoMedio) != Float.floatToIntBits(other.tempoMedio)) {
            return false;
        }
        if (Float.floatToIntBits(this.desvio) != Float.floatToIntBits(other.desvio)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        return hash;
    }
    
    

    @Override
    public String toString() {
        return "servicoInfo{" + "nome=" + nome + ", slots=" + slots + ", tempoMedio=" + tempoMedio + '}';
    }
    
    
    
}
